﻿{yun:}include file="$wapstyle/header_cont.htm"{/yun}
<style>
    .important-info *{
        padding:0;
        margin:0;
        font-size: 13px;
        color: #333;
    }
</style>
<div class="bl-pbox  bl-sbox">


    <div class="bl-pcon">
        <div class="bl-pcon-content">
            <!----------公司介绍---------->
            <div class="job-company">
                <div class="job-company-img"><img id="company_img" src="{yun:}$company_info.enterprise_facade{/yun}"></div>
                <div class="job-company-intro">
                    <div class="jcheader">
                        <span class="name" id="job_name">{yun:}$job.name{/yun}</span>
                        <!--<span class="money">{yun:}if $job.minsalary&&$job.maxsalary{/yun}{yun:}$job.minsalary{/yun}-{yun:}$job.maxsalary{/yun} 元/月{yun:}else if $job.minsalary{/yun}{yun:}$job.minsalary{/yun}以上 元/月{yun:}else{/yun}面议{yun:}/if{/yun}</span>-->
                        <span class="money">{yun:}$job.salary{/yun}</span>
                    </div>
                    <div class="jcpop">
                        <span class="time">{yun:}$job.sdate|date_format:"%Y-%m-%d"{/yun}</span>
                        <!--<span class="nature">民营企业</span>-->
                        <!--<span class="post">{yun:}if $job.nature == 1{/yun}全职{yun:}else{/yun}兼职{yun:}/if{/yun}</span>-->
                        <span class="post">{yun:}$job.salary_type{/yun}</span>
                    </div>
                    <div class="jcintro">
                        <!--<div class="name">企业亮点：</div>-->
                        <div class="info">
                            {yun:}foreach key=j item=v from=$bright{/yun}
                            <span class="list">{yun:}$v{/yun}</span>
                            {yun:}/foreach{/yun}
                        </div>
                    </div>


                </div>
            </div>

            <!----------职位详情---------->
            <div class="job-panel">
                <div class="js-pagelink">
                    <div class="tab-h tabmenu_1">
                        <ul>
                            <li class="active"><span class="name">职位详情</span><span class="line"></span></li>
                            <li><span class="name">任职要求</span><span class="line"></span></li>
                            <li> <span class="name">企业介绍</span><span class="line"></span></li>
                            <li><span class="name">相关图片</span><span class="line"></span></li>
                        </ul>
                    </div>

                    <!--职位详情开始-->
                    <a name="link1" class="linktag"></a>
                    <div class="tab-con">
                        <div class="job-detialbox">
                            <div class="job-detialheader"><span class="name">职位详情</span></div>
                            <div class="job-detialcon">
                                <table class="job-detial-table" cellpadding="0" cellspacing="0">
                                    <thead>
                                    <tr>
                                        <th colspan="3"> 基本情况 </th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr>
                                        <th>1</th>
                                        <th>综合工资</th>
                                        <td>{yun:}if $job.minsalary&&$job.maxsalary{/yun}{yun:}$job.minsalary{/yun}-{yun:}$job.maxsalary{/yun} 元{yun:}else if $job.minsalary{/yun}{yun:}$job.minsalary{/yun}以上 元{yun:}else{/yun}面议{yun:}/if{/yun}</td>
                                    </tr>
                                    <tr>
                                        <th>2</th>
                                        <th>发薪日</th>
                                        <td>{yun:}$job.sunsalary{/yun}
                                            <!--<br />2、夜班：{yun:}$job.nightsalary{/yun}元 / 天-->
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>3</th>
                                        <th>薪资说明</th>
                                        <td>{yun:}$job.salarydetail{/yun}</td>
                                    </tr>
                                    <tr>
                                        <th>4</th>
                                        <th>作息时间</th>
                                        <td>{yun:}$job.rest{/yun}</td>
                                    </tr>
                                    <!--<tr>-->
                                        <!--<th>5</th>-->
                                        <!--<th>是否名企</th>-->
                                        <!--<td>{yun:}$job.f_company{/yun}</td>-->
                                    <!--</tr>-->
                                    <tr>
                                        <th>6</th>
                                        <th>招聘人数</th>
                                        <td>
                                            <!--{yun:}foreach from=$comdata.job_number key=j item=v{/yun}-->
                                            <!--{yun:}if $job.number == $v{/yun}{yun:}$comclass_name[$v]{/yun}{yun:}/if{/yun}-->
                                            <!--{yun:}/foreach{/yun}-->
                                            {yun:}$job.number{/yun}
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>7</th>
                                        <th>发放方式</th>
                                        <td>{yun:}$job.salary_type{/yun}</td>
                                    </tr>
                                    <tr>
                                        <th>8</th>
                                        <th>厂车路线</th>
                                        <td>{yun:}$job.car{/yun}</td>
                                    </tr>
                                    <tr>
                                        <th>9</th>
                                        <th>工作地点</th>
                                        <td>{yun:}$address{/yun}</td>
                                    </tr>
                                    <tr>
                                        <th>10</th>
                                        <td colspan="2">
                                            <a href="{yun:}url m=wap c=job a=jobmap id=$job.id{/yun}" class="search-workadress"> <span class="workadress"><span class="name">查看工作地点</span></span> </a>
                                            <input type="hidden" id="map_x" value="{yun:}$job.x{/yun}" />
                                            <input type="hidden" id="map_y" value="{yun:}$job.y{/yun}" />
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
                            <div class="job-detialcon">
                                <table class="job-detial-table" cellpadding="0" cellspacing="0">
                                    <thead>
                                    <tr>
                                        <th colspan="3"> 企业优势 </th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr>
                                        <th>1</th>
                                        <th>企业亮点</th>
                                        <td>
                                            {yun:}foreach key=j item=v from=$bright{/yun}
                                            {yun:}$v{/yun} |
                                            {yun:}/foreach{/yun}
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>2</th>
                                        <th>企业福利</th>
                                        <td>
                                            {yun:}$job.welfare{/yun}
                                            <!--<div>其他福利：-->
                                            <!--{yun:}foreach key=j item=v from=$welfare_other{/yun}-->
                                            <!--{yun:}$v{/yun},-->
                                            <!--{yun:}/foreach{/yun}-->
                                            <!--</div>-->
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
                            <div class="job-detialcon">
                                <table class="job-detial-table" cellpadding="0" cellspacing="0">
                                    <thead>
                                    <tr>
                                        <th colspan="3"> 食宿介绍 </th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr>
                                        <th>1</th>
                                        <th>伙食</th>
                                        <td>{yun:}$job.food{/yun}</td>
                                    </tr>
                                    <tr>
                                        <th>2</th>
                                        <th>住宿</th>
                                        <td>{yun:}$job.sleep{/yun}</td>
                                    </tr>
                                    <tr>
                                        <th>3</th>
                                        <th>交通</th>
                                        <td>{yun:}$job.trans{/yun}</td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
                            <div class="job-detialcon">
                                <table class="job-detial-table" cellpadding="0" cellspacing="0">
                                    <thead>
                                    <tr>
                                        <th colspan="3"> 合同介绍 </th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr>
                                        <th>1</th>
                                        <th>合同说明</th>
                                        <td>{yun:}$job.note{/yun}</td>
                                    </tr>
                                    <tr>
                                        <th>2</th>
                                        <th>工资发放</th>
                                        <td>{yun:}$job.salary_fafang{/yun}</td>
                                    </tr>
                                    <tr>
                                        <th>3</th>
                                        <th>保险说明</th>
                                        <td>{yun:}$job.insurance{/yun}</td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
                            <div class="job-detialcon">
                                <table class="job-detial-table" cellpadding="0" cellspacing="0">
                                    <thead>
                                    <tr>
                                        <th colspan="3"> 职位状态 </th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr>
                                        <th>1</th>
                                        <th>职位描述</th>
                                        <td class="important-info">{yun:}$job.description{/yun}</td>
                                    </tr>
                                    <!--<tr>-->
                                        <!--<th>2</th>-->
                                        <!--<th>作息时间</th>-->
                                        <!--<td>{yun:}$job.rest{/yun}</td>-->
                                    <!--</tr>-->
                                    </tbody>
                                </table>
                            </div>
                            <div class="job-detialcon">
                                <table class="job-detial-table" cellpadding="0" cellspacing="0">
                                    <thead>
                                    <tr>
                                        <th colspan="3"> 其他信息 </th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr>
                                        <th>1</th>
                                        <th>体检说明</th>
                                        <td>{yun:}$job.tijian{/yun}</td>
                                    </tr>
                                    <tr>
                                        <th>2</th>
                                        <th>身份证复印件</th>
                                        <td>{yun:}$job.idcard_copy{/yun}</td>
                                    </tr>
                                    <tr>
                                        <th>3</th>
                                        <th>毕业证复印件</th>
                                        <td>{yun:}$job.school_end_copy{/yun}</td>
                                    </tr>
                                    <tr>
                                        <th>4</th>
                                        <th>照片</th>
                                        <td>{yun:}$job.photos{/yun}</td>
                                    </tr>
                                    <!--<tr>-->
                                    <!--<th>5</th>-->
                                    <!--<td colspan="2"><a href="#" class="search-workbus"> <span class="workbus"><span class="name">厂车路线3条</span></span> </a></td>-->
                                    <!--</tr>-->
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                    <!--职位详情结束-->

                    <!--任职要求开始-->
                    <a name="link2" class="linktag"></a>
                    <div class="tab-con">
                        <div class="job-detialbox">
                            <div class="job-detialheader"><span class="name">任职要求</span></div>
                            <div class="job-detialcon">
                                <table class="job-detial-table" cellpadding="0" cellspacing="0">
                                    <tbody>
                                    <tr>
                                        <th>1</th>
                                        <th>性别</th>
                                        <td>{yun:}$job.sex{/yun}</td>
                                    </tr>
                                    <!--<tr>-->
                                    <!--<th>2</th>-->
                                    <!--<th>年龄</th>-->
                                    <!--<td>-->
                                    <!--{yun:}foreach from=$comdata.job_age key=j item=v{/yun}-->
                                    <!--{yun:}if $job.age == $v{/yun}{yun:}$comclass_name[$v]{/yun}{yun:}/if{/yun}-->
                                    <!--{yun:}/foreach{/yun}-->
                                    <!--</td>-->
                                    <!--</tr>-->
                                    <tr>
                                        <th>2</th>
                                        <th>年龄</th>
                                        <td>
                                            {yun:}if $job.minage=='' && $job.maxage==''{/yun}
                                            不限
                                            {yun:}else{/yun}
                                            {yun:}$job.minage{/yun}-{yun:}$job.maxage{/yun}岁
                                            {yun:}/if{/yun}

                                        </td>
                                    </tr>
                                    <tr>
                                        <th>3</th>
                                        <th>学历</th>
                                        <td>
                                            {yun:}foreach from=$comdata.job_edu key=j item=v{/yun}
                                            {yun:}if $job.edu == $v{/yun}{yun:}$comclass_name[$v]{/yun}{yun:}/if{/yun}
                                            {yun:}/foreach{/yun}
                                            {yun:}if $job.is_graduate{/yun}   (可接受应届生){yun:}/if{/yun}
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>4</th>
                                        <th>工作经验</th>
                                        <td>
                                            {yun:}foreach from=$comdata.job_exp key=j item=v{/yun}
                                            {yun:}if $job.exp == $v{/yun}{yun:}$comclass_name[$v]{/yun}{yun:}/if{/yun}
                                            {yun:}/foreach{/yun}
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>5</th>
                                        <th>纹身、烟疤</th>
                                        <td>{yun:}$job.wenshen{/yun}</td>
                                    </tr>
                                    <!--<tr>-->
                                        <!--<th>7</th>-->
                                        <!--<th>考试</th>-->
                                        <!--<td>{yun:}$job.exam{/yun}</td>-->
                                    <!--</tr>-->
                                    <tr>
                                        <th>8</th>
                                        <th>身份证</th>
                                        <td>{yun:}$job.idcard{/yun}</td>
                                    </tr>
                                    <tr>
                                        <th>9</th>
                                        <th>毕业证</th>
                                        <td>{yun:}$job.school_end{/yun}</td>
                                    </tr>
                                    <!--<tr>-->
                                    <!--<th>10</th>-->
                                    <!--<th>返厂规定</th>-->
                                    <!--<td>{yun:}$job.return_factory{/yun}</td>-->
                                    <!--</tr>-->
                                    <tr>
                                        <th>10</th>
                                        <th>英文字母</th>
                                        <td>{yun:}$job.english{/yun}</td>
                                    </tr>
                                    <tr>
                                        <th>11</th>
                                        <th>简单算术</th>
                                        <td>{yun:}$job.maths{/yun}</td>
                                    </tr>

                                    <tr>
                                        <th>12</th>
                                        <th>无尘服</th>
                                        <td>{yun:}$job.dust{/yun}</td>
                                    </tr>

                                    <tr>
                                        <th>13</th>
                                        <th>更多要求</th>
                                        <td>{yun:}$job.more_requirement{/yun}</td>
                                    </tr>
                                    <tr>
                                        <th>14</th>
                                        <!--<th>人脸识别</th>-->
                                        <th>犯罪记录</th>
                                        <td>{yun:}$job.face{/yun}</td>
                                    </tr>
                                    <tr>
                                        <th>15</th>
                                        <!--<th>体内异物</th>-->
                                        <th>温馨提示</th>
                                        <td>{yun:}$job.return_factory{/yun}</td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                    <!--任职要求结束-->

                    <!--企业介绍开始-->
                    <a name="link3" class="linktag"></a>
                    <div class="tab-con">
                        <div class="job-detialbox">
                            <div class="job-detialheader"><span class="name">企业介绍</span></div>
                            <div class="job-detialcon">
                                <div class="job-detialtitle"><span class="name">公司信息</span></div>
                                <div class="job-detial-company">
                                    <div class="companyicon"><img src="{yun:}$company_info.enterprise_logo{/yun}"></div>
                                    <div class="companyintro">
                                        <div class="name" id="company_name">{yun:}$company_info.enterprise_name{/yun}</div>
                                        <div class="num">{yun:}$company_info.enterprise_label{/yun}/{yun:}$company_info.employee_number_value{/yun}</div>
                                    </div>
                                </div>
                                {yun:}if !empty($other_job){/yun}
                                <div class="job-detialtitle"><span class="name">在招职位</span></div>
                                <div class="job-detialcon">
                                    {yun:}foreach from=$other_job key=j item=v{/yun}
                                    <div class="job-detial-invite">
                                        <div class="job-invitebtnbox">
                                            {yun:}if $v.types==1{/yun}
                                            <a  class="bl-btn bl-bluebtn1" href="##">已投递</a>
                                            {yun:}else{/yun}
                                            <a  class="bl-btn bl-bluebtn" onclick="jobchange('{yun:}$v.id{/yun}')">投递</a>
                                            {yun:}/if{/yun}
                                        </div>
                                        <div class="job-inviteinfo">
                                            <div class="name">{yun:}$v.name{/yun}</div>
                                            <div class="money">{yun:}if $v.minsalary&&$v.maxsalary{/yun}{yun:}$v.minsalary{/yun}-{yun:}$v.maxsalary{/yun} 元{yun:}else if $v.minsalary{/yun}{yun:}$v.minsalary{/yun}以上 元{yun:}else{/yun}面议{yun:}/if{/yun}</div>
                                        </div>
                                    </div>
                                    {yun:}/foreach{/yun}
                                </div>
                                {yun:}/if{/yun}
                                <div class="job-detialtitle"><span class="name">企业介绍</span></div>
                                <div class="job-detialcon">
                                    <div class="job-detial-list">
                                        <div class="detial">{yun:}$company_info.introduction{/yun}</div>
                                    </div>
                                </div>

                            </div>
                        </div>
                    </div>
                    <!--企业介绍结束-->

                    <!--相关图片开始-->
                    <a name="link4" class="linktag"></a>
                    <div class="tab-con">
                        <div class="job-detialbox">
                            <div class="job-detialheader"><span class="name">相关图片</span></div>

                            <div class="job-detialtitle"><span class="name">工作环境</span></div>
                            <div class="job-detialcon">
                                <div class="job-surround">
                                    {yun:}foreach from=$company_img_info key=j item=v{/yun}
                                    <div class="surround"><img src="{yun:}$v.url{/yun}" onclick='yulanimg("{yun:}$v.url{/yun}");'></div>
                                    {yun:}/foreach{/yun}
                                </div>
                            </div>
                            <!--<div class="job-detialtitle"><span class="name">食堂环境</span></div>-->
                            <!--<div class="job-detialcon">-->
                            <!--<div class="job-surround">-->
                            <!--<div class="surround"><img src="images/img-5.png"></div>-->
                            <!--<div class="surround"><img src="images/img-6.png"></div>-->
                            <!--<div class="surround"><img src="images/img-5.png"></div>-->
                            <!--<div class="surround"><img src="images/img-6.png"></div>-->
                            <!--</div>-->
                            <!--</div>-->
                        </div>
                    </div>
                    <!--相关图片结束-->

                </div>
            </div>
        </div>
    </div>







    <!----------------------底部导航条开始---------------------->
    <section>
        <div class="yun_job_footer">
            <div class="yun_job_footer_fixed">
                <div class="yun_job_footer_bg">
                    <div class="yun_job_footer_fx_left">
                        <div class="yun_job_footer_fx">

                            {yun:}if $job.fav_job{/yun}
                            <a href="javascript:jobfavcancel('{yun:}$job.id{/yun}','{yun:}$user_id{/yun}');" class="">
                                <i class="iconfont_ysc"></i> <span class="yun_job_footer_s yun_job_footer_s_y">	已收藏</span></a>
                            {yun:}else{/yun}
                            <a href="javascript:jobfav('{yun:}$job.id{/yun}','{yun:}$user_id{/yun}');" class="">
                                <i class="iconfont_sc"></i> <span class="yun_job_footer_s">收藏</span></a>
                            {yun:}/if{/yun}

                        </div>
                        <!--<div class="yun_job_footer_fx">-->

                        <!--{yun:}if $look_msg == '2' || $look_msg=='3' || $look_msg=='31' || $look_msg=='4' || $look_msg=='5'{/yun}-->
                        <!--<a><i class="iconfont_usershowtel"></i> <span style="color: #d0d0d0;">拨号</span></a>-->
                        <!--{yun:}else if $job.linktel{/yun}-->
                        <!--<a href="tel:{yun:}$job.linktel{/yun}"><i class="iconfont_tel"></i> <span class="yun_job_footer_s">拨号</span></a>-->
                        <!--{yun:}else if $company.linkphone{/yun}-->
                        <!--<a href="tel:{yun:}$company.linkphone{/yun}"><i class="iconfont_tel"></i> <span class="yun_job_footer_s">拨号</span></a>-->
                        <!--{yun:}/if{/yun}-->
                        <!--</div>-->

                        <div class="yun_job_footer_fx">
                            <a href="javascript:webshare();" class=""> <i class="iconfont_jobshare"></i> <span class="yun_job_footer_s">分享</span></a>
                        </div>
                        <div class="yun_job_footer_fx">
                            <a href="javascript:jingjiren();" class=""> <i class="iconfont_jingjiren"></i> <span class="yun_job_footer_s">经纪人</span></a>
                        </div>

                    </div>

                    <div class="yun_job_footer_fx_right">
                        {yun:}if $is_toudi && $user_id{/yun}
                        <span class="yun_job_footer_fx_right_ytd_bth">已报名</span>
                        {yun:}else{/yun}
                        <a href="javascript:jobapply('{yun:}$job.id{/yun}','{yun:}$user_id{/yun}');" class="yun_job_footer_fx_right_bth">免费报名</a>
                        {yun:}/if{/yun}
                    </div>
                </div>
            </div>
        </div>
    </section>
    <!----------------------底部导航条结束---------------------->
    <input type="hidden" name="status" value="{yun:}$job.status{/yun}" id="status">
</div>
<script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
<script src="{yun:}$wap_style{/yun}/js/layer/layer.m.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
<script src="{yun:}$wap_style{/yun}/js/public.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
<script src="{yun:}$wap_style{/yun}/js/prefixfree.min.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
<script src="{yun:}$wap_style{/yun}/js/pack.js?v={yun:}$config.cachecode{/yun}" type="text/javascript"></script>
<script src='{yun:}$wap_style{/yun}/chat/chat.js?v={yun:}$config.cachecode{/yun}' type='text/javascript'></script>

<script src="{yun:}$wap_style{/yun}/js/tinybox/tinybox.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>

<script src="{yun:}$wap_style{/yun}/js/WebViewJavascriptBridge.js?v={yun:}$config.cachecode{/yun}" type="text/javascript"></script>
<script src="{yun:}$wap_style{/yun}/js/tool-nativeSchema.js?v={yun:}$config.cachecode{/yun}" type="text/javascript"></script>

<script type="text/javascript">
    $(document).ready(function (){

//            var username=$("#username").val();
//            var password=$("#password").val();
//            if(username==""||username=="用户名"|| username=="请输入用户名"){
//                layer.msg('用户名不能为空！', 2, 8);return false;
//            }
//            if(password==''){
//                layer.msg('密码不能为空！', 2, 8);return false;
//            }


            $.post(wapurl + "?c=job&a=browse_job",{
                user_id:'{yun:}$user_id{/yun}',
                job_id:'{yun:}$job.id{/yun}',

            },function(data){
                var data=eval('('+data+')');

                if(data.state == 2){
                    return false;


                }else{

                    //alert("11111");
                    layermsg(data.msg, 2, 9);
                }
                //layermsg(data.msg);
            })

    });
</script>
<script type="text/javascript">
    $(function(){
        //<!-----------页面tab切换开始---------->
        /*$(".js-tab .tab-h li").click(function(){
         var i=$(this).index();
         $(this).addClass("active").siblings("li").removeClass("active");
         $(this).parents(".js-tab").find(".tab-con").eq(i).show().siblings(".tab-con").hide();
         })*/
        //<!-----------页面tab切换结束---------->
        //<!-----------点击收藏开始---------->
        $(".js-job-save").click(function(){
            $(this).toggleClass("save-active");
        })
        //<!-----------点击收藏结束---------->
        //<!-----------页面滚动事件开始---------->
        if($(".js-pagelink").html()!= undefined){
            var TopHeight=$(".js-pagelink").offset().top;
            var pon1=$('a[name=link1]').offset().top;
            var pon2=$('a[name=link2]').offset().top;
            var pon3=$('a[name=link3]').offset().top;
            var pon4=$('a[name=link4]').offset().top;
            $(".bl-pcon").scroll(function () {
                var scrollTop=$(".bl-pcon").scrollTop();

                var windowHeight = $(".bl-pcon").height();
                var scrollHeight = $(".bl-pcon-content").height();

                $(".js-pagelink .linktag").removeClass("marginTop");
                if(scrollTop >= TopHeight) {
                    $(".js-pagelink").addClass("linkposition");
                }
                else{
                    $(".js-pagelink").removeClass("linkposition");
                }
                if(scrollTop>= pon1) {
                    $(".js-pagelink .tab-h li").eq(0).addClass("active").siblings("li").removeClass("active");
                }
                if (scrollTop>= pon2) {
                    $(".js-pagelink .tab-h li").eq(1).addClass("active").siblings("li").removeClass("active");
                }
                if (scrollTop >= pon3) {
                    $(".js-pagelink .tab-h li").eq(2).addClass("active").siblings("li").removeClass("active");
                }
                if (scrollTop>= pon4||scrollHeight-(scrollTop + windowHeight) <=5 ) {
                    $(".js-pagelink .tab-h li").eq(3).addClass("active").siblings("li").removeClass("active");
                }
            })
            $(".js-pagelink .tab-h li").click(function(){
                var indexli=$(this).index();
                if(indexli==0) {
                    $(".bl-pcon").animate({scrollTop:pon1+10});
                }
                if(indexli==1) {
                    $(".bl-pcon").animate({scrollTop:pon2+10});
                }
                if(indexli==2){
                    $(".bl-pcon").animate({scrollTop:pon3+10});
                }
                if(indexli==3) {
                    $(".bl-pcon").animate({scrollTop:pon4+10});
                }

            })


        }
        //<!-----------页面滚动事件结束---------->

    })
</script>
<script type="text/javascript">

    window.onload=function(){
        var status = $('#status').val();
        if( status == 1 ){
            layermsg('该职位已下架！');
            window.history.go(-1);
        }

        // var obj={
        //     id:GetRequest().id
        // }
        // var ua = navigator.userAgent.toLowerCase();
        // if (/iphone|ipad|ipod/.test(ua)) {
        //     window.location.href = "lanlingwangapp://type=1&value=http://47.104.207.190/wap/index.php?c=job&a=view&id="+GetRequest().id;//ios app协议
        //     window.setTimeout(function() {
        //         // window.location.href = "https://itunes.apple.com/cn/app/id477927812";
        //         alert(111);
        //     }, 2000)
        // } else if (/android/.test(ua)) {
        //     window.location.href = "com.baidu.tieba://app";//android app协议
        //     window.setTimeout(function() {
        //         window.location.href = "https://2121.apk";//android 下载地址
        //     }, 2000)
        //     //window.WebViewJavascriptBridge.callHandler('seeMore',{query:{id:this.goodsData.goodslistId}});
        // }
    }
    function GetRequest() {
        var url = location.search; //获取url中"?"符后的字串
        var theRequest = new Object();
        if (url.indexOf("?") != -1) {
            var str = url.substr(1);
            strs = str.split("&");
            for(var i = 0; i < strs.length; i ++) {
                theRequest[strs[i].split("=")[0]]=unescape(strs[i].split("=")[1]);
            }
        }
        return theRequest;
    }
</script>
<script type="text/javascript">
    function webshare(){
        // var obj={
        //     token:GetRequest().token
        // }
        var ua = navigator.userAgent.toLowerCase();
        var yuming = window.location.host;
        if (/iphone|ipad|ipod/.test(ua)) {
            window.webkit.messageHandlers.webshare.postMessage('123');
        } else if (/android/.test(ua)) {
            var img_url = $('#company_img')[0].src; //图片路径
            var company_name = $('#company_name').text(); //公司名称
            var job_name = $('#job_name').text(); //职位名称
            var url = 'http://'+yuming+'/wap/index.php?c=job&a=view&id='+GetRequest().id; //url
            var job_id = '{yun:}$job.id{/yun}'; //职位id
            window.android.shareJob(img_url,company_name,job_name,url,job_id);//对应着title,formId,serviceId
            // window.WebViewJavascriptBridge.callHandler('webshare','123');
            //window.WebViewJavascriptBridge.callHandler('seeMore',{query:{id:this.goodsData.goodslistId}});
        }
    }

    function jingjiren(){
        // var obj={
        //     token:GetRequest().token
        // }
        var ua = navigator.userAgent.toLowerCase();
        var yuming = window.location.host;
        if (/iphone|ipad|ipod/.test(ua)) {
            window.webkit.messageHandlers.SelectMyAgent.postMessage('123');
        } else if (/android/.test(ua)) {
            var img_url = $('#company_img')[0].src; //图片路径
            var company_name = $('#company_name').text(); //公司名称
            var job_name = $('#job_name').text(); //职位名称
            var url = 'http://'+yuming+'/wap/index.php?c=job&a=view&id='+GetRequest().id; //url
            window.android.SelectMyAgent(img_url,company_name,job_name,url);//对应着title,formId,serviceId
            // window.WebViewJavascriptBridge.callHandler('webshare','123');
            //window.WebViewJavascriptBridge.callHandler('seeMore',{query:{id:this.goodsData.goodslistId}});
        }
    }

    function GetRequest() {
        var url = location.search; //获取url中"?"符后的字串
        var theRequest = new Object();
        if (url.indexOf("?") != -1) {
            var str = url.substr(1);
            strs = str.split("&");
            for(var i = 0; i < strs.length; i ++) {
                theRequest[strs[i].split("=")[0]]=unescape(strs[i].split("=")[1]);
            }
        }
        return theRequest;
    }
</script>
<script>
    var config = {
        url: '{yun:}url m=wap c=job a=share id=$job.id{/yun}',
        title: '{yun:}$title{/yun}',
        desc: '{yun:}$description{/yun}',
        img: '{yun:}$config.sy_weburl{/yun}/{yun:}$config.sy_wx_sharelogo{/yun}',
        img_title: '{yun:}$job.name{/yun}',
        from: '{yun:}$config.sy_webname{/yun}'
    };
    var content = '';

    function reportcom(usertype) {
        if(usertype == 1) {
            content = $("#reportcom").html();
            $("#reportcom").html('');
            layer.open({
                type: 1,
                shadeClose: false,
                content: content
            });
        }
    }

    function add_reason(s) {
        if($("#r" + s).hasClass('report_job_ly_cur')) {
            $("#r" + s).removeClass('report_job_ly_cur');
        } else {
            $("#r" + s).addClass('report_job_ly_cur');
        }
    }

    function reportqx() {
        $("#reportcom").html(content);
        layer.closeAll();
    }
    function reportSub() {
        var authcode = $("#authcode").val();
        var r1 = $("#r1").html(),
                r2 = $("#r2").html(),
                r3 = $("#r3").html(),
                r4 = $("#r4").html(),
                r5 = $("#r5").html();
        var reason = "理由：";
        if($("#r1").hasClass('report_job_ly_cur')) {
            var reason = reason + r1 + "，";
        }
        if($("#r2").hasClass('report_job_ly_cur')) {
            var reason = reason + r2 + "，";
        }
        if($("#r3").hasClass('report_job_ly_cur')) {
            var reason = reason + r3 + "，";
        }
        if($("#r4").hasClass('report_job_ly_cur')) {
            var reason = reason + r4 + "，";
        }
        if($("#r5").hasClass('report_job_ly_cur')) {
            var reason = reason + r5 + "；";
        }

        if(reason == '理由：') {
            layermsg('请选择举报原因！');
            return false;
        }

        var r6 = $("#r_reason").val();

        var reason = reason + r6;

        if(authcode == '') {
            layermsg('请填写验证码！');
            return false;
        }
        layer.closeAll();
        layer_load('执行中，请稍候...');
        $.post(wapurl + "?c=job&a=report", {
            id: '{yun:}$job.id{/yun}',
            authcode: authcode,
            reason: reason
        }, function(data) {
            layer.closeAll();
            var data = eval('(' + data + ')');
            if(data.url) {
                layermsg(data.msg, 2, function() {
                    location.href = data.url;
                });
            } else {
                layermsg(data.msg, 2, function() {
                    location.reload();
                });
            }
        });
    }

    function zixun() {
        layer.open({
            type: 1,
            title: '对职位感兴趣？',
            closeBtn: [0, true],
            border: [10, 0.3, '#000', true],
            area: ['300px', '320px'],
            content: '<div class="consultation_box"><textarea class="report_box_textarea mt10" id="reasons" placeholder="您可以提出对该职位的疑问。比如所在地、年薪、福利等等，我会及时给您回复！期待与您合作" 。></textarea><input type="hidden" name="jobid" value="{yun:}$Info.id{/yun}" /><input type="hidden" name="job_uid" value="{yun:}$job.uid{/yun}" /><input type="hidden" name="com_name" value="{yun:}$Info.com_name{/yun}" /><input type="hidden" name="job_name" value="{yun:}$job.name{/yun}" /><div class="report_box_yz"><span class="report_box_yz_name">验证码： </span> <input type="text" class="report_box_text" id="authcodes" maxlength="6"><img id="vcode_imgs" src="{yun:}$config.sy_wapdomain{/yun}/authcode.inc.php" class="report_box_yz_img"/> <a onclick="checkCode(\'vcode_imgs\');">看不清?</a></div><div class="report_box_bth"><input class="login_button_jb" type="button" value="提交咨询"  onclick="zixunSubs();"/></div></div>'
        });
    }

    function zixunqxs() {
        $("#zixuns").html();
        layer.closeAll();
    }

    function zixunSubs() {
        var authcode = $("#authcodes").val();
        var reason = $("#reasons").val();
        var jobid = $.trim($("input[name='jobid']").val());
        var job_uid = $.trim($("input[name='job_uid']").val());
        var com_name = $.trim($("input[name='com_name']").val());
        var job_name = $.trim($("input[name='job_name']").val());
        if(reason == '') {
            layermsg('请填写咨询内容！');
            return false;
        }
        if(authcode == '') {
            layermsg('请填写验证码！');
            return false;
        }

        layer_load('执行中，请稍候...');
        $.post(wapurl + "?c=job&a=msg", {
            id: '{yun:}$job.id{/yun}',
            authcode: authcode,
            reason: reason,
            jobid: jobid,
            job_uid: job_uid,
            com_name: com_name,
            job_name: job_name
        }, function(data) {
            layer.closeAll();
            var data = eval('(' + data + ')');
            if(data.url) {
                layermsg(data.msg, 2, function() {
                    location.href = data.url;
                });
            } else {
                layermsg(data.msg, 2, function() {
                    location.reload();
                });
            }
        });
    }

    function jobapply(jobid,user_id) {
        if(user_id == "" || user_id == null || user_id == undefined){
            layermsg("您尚未登陆或登陆超时", 2);
            return false;
        }
        layer_load('执行中，请稍候...');
        $.get(wapurl + "?c=job&a=view&type=sq&id={yun:}$job.id{/yun}&user_id=" + user_id, function(data) {
            layer.closeAll();
            var data = eval('(' + data + ')');
            if(data.url) {
                if(data.url == '1') {
                    url = location.href;
                }
                layermsg(data.msg, 2, function() {
                    location.href = data.url;
                });
            } else {
                layermsg(data.msg, 2);
            }
        });
    }
    function jobchange( id ) {
        window.location.href = wapurl +　'?c=job&a=view&id='+id;
    }
    function jobfav(jobid,user_id) {
        if(user_id == "" || user_id == null || user_id == undefined){
            layermsg("您尚未登陆或登陆超时", 2);
            return false;
        }
        layer_load('执行中，请稍候...');
        $.get(wapurl + "?c=job&a=view&type=fav&id={yun:}$job.id{/yun}&user_id=" + user_id, function(data) {
            layer.closeAll();
            var data = eval('(' + data + ')');
            if(data.url) {
                if(data.url == '1') {
                    url = location.href;
                }
                layermsg(data.msg, 2, function() {
                    location.href = data.url;
                });
            } else {
                layermsg(data.msg, 2, function() {
                    location.reload();
                });
            }
        })
    };
    function jobfavcancel(jobid,user_id) {
        layer_load('执行中，请稍候...');
        $.get(wapurl + "?c=job&a=view&type=favcancel&id={yun:}$job.id{/yun}&user_id=" + user_id, function(data) {
            layer.closeAll();
            var data = eval('(' + data + ')');
            if(data.url) {
                if(data.url == '1') {
                    url = location.href;
                }
                layermsg(data.msg, 2, function() {
                    location.href = data.url;
                });
            } else {
                layermsg(data.msg, 2, function() {
                    location.reload();
                });
            }
        })
    };

    function checkshenming() {
        $('#shenming').hide();
        $("#smtext").show();
    }

    function subsm(id) {
        var shenming = $("#smname").val();
        $.post(wapurl + "?c=job&a=shenming", {
            id: id,
            shenming: shenming
        }, function(data) {
            if(data) {
                location.reload();
            }
        });
    }
</script>
<script type="text/javascript">
    $(function(){
        $(".js-tab .tab-h li").click(function(){
            var i=$(this).index();
            $(this).addClass("active").siblings("li").removeClass("active");
            $(this).parents(".js-tab").find(".tab-con").eq(i).show().siblings(".tab-con").hide();
        })
        $(".js-job-save").click(function(){
            $(this).toggleClass("save-active");
        })

    })

</script>
{yun:}if $job.x && $job.y{/yun}
<script type="text/javascript" src="{yun:}$config.mapurl{/yun}"></script>
<!--图片预览查看开始-->
<script type="text/javascript">
    function yulanimg(src) {
        var h=document.body.clientHeight;
        var w=document.body.clientWidth;
        /*var content="<div id='tinyimgbox'>\
         <img src='" + src + "' style='max-width:"+(w)+"px;max-height:"+(h-60)+"px' />\
         </div>\
         <div id='tinyimg-control'>\
         <a href='" + src + "' class='tinyimg-ebtn ebtn ckmain-ebtn'  target='_blank'>查看原图</a>\
         </div>"*/
        var content = "<img src='" + src + "' style='max-width:"+(w)+"px;max-height:"+(h-60)+"px' />";//弹出图片
        TINY.box.show(content, 0, 0, 0, 0, 0);
    }
</script>
<!--图片预览查看结束-->

<script>
    //百度地图测距
    function getdistance() {
        var map_x = $("#map_x").val();
        var map_y = $("#map_y").val();
        if(map_x == 0 && map_y == 0) {
            var geolocation = new BMap.Geolocation();
            geolocation.getCurrentPosition(function(r) {
                if(this.getStatus() == BMAP_STATUS_SUCCESS) {
                    $.post(wapurl + 'index.php?c=job&a=distance', {
                        x: r.point.lng,
                        y: r.point.lat
                    }, function(data) {})
                    $("#map_x").val(r.point.lng);
                    $("#map_y").val(r.point.lat);
                } else {
                    if(this.getStatus() == "6") {
                        layermsg("开启手机定位后才能使用此功能", 2);
                        return false;
                    } else if(this.getStatus() == "7") {
                        layermsg("开启手机定位后才能使用此功能", 2);
                        return false;
                    } else {
                        layermsg("地图定位出错", 2);
                        return false;
                    }
                }
            }, {
                enableHighAccuracy: true
            })
        }
        var x = '{yun:}$job.x{/yun}',
                y = '{yun:}$job.y{/yun}',
                distance = '{yun:}$distance{/yun}';

        if(map_x > 0 && map_y > 0) {
            if(distance!=''){
                $("#distance").html(distance);
            }else{
                var pointA = new BMap.Point(x, y);
                var pointB = new BMap.Point(map_x, map_y);
                var map = new BMap.Map();
                var mapdistance = '(' + (map.getDistance(pointA, pointB) / 1000).toFixed(1) + 'km)';
                $("#distance").html(mapdistance);
            }
        } else {
            setTimeout(function() {
                getdistance();
            }, 3000);
        }
    }
    $(function() {
        getdistance();
    })
</script>
{yun:}/if{/yun}
<div style='margin:0 auto;width:0px;height:0px;overflow:hidden;'><img src="{yun:}$config.sy_weburl{/yun}/{yun:}$config.sy_wx_sharelogo{/yun}"></div>
{yun:}include file="$wapstyle/public_previewimage.htm"{/yun} {yun:}include file="$wapstyle/footer.htm"{/yun}
